package com.example.ruiji.service;

import com.example.ruiji.dao.CategoryMapper;
import com.example.ruiji.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServicelmpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getAll() {

        return categoryMapper.getAll();
    }

    @Override
    public int insertcaipin(Category category) {
        return categoryMapper.insertcaipin(category);
    }

    @Override
    public int inserttaocan(Category category) {
        return categoryMapper.inserttaocan(category);
    }

    @Override
    public int delete(String id) {
        return categoryMapper.delete(id);
    }

    @Override
    public int update(Category category) {
        return categoryMapper.update(category);
    }
}
